<template>

<div id="placeholder" style="height: 100%;width:100%;">
    </div>
</template>
<script>

export default {
 mounted(){
        window.docEditor = new DocsAPI.DocEditor("placeholder",
            {
                "document": {
                    "fileType": "doc",
                    "key": "E7FAFC9C22A8",
                    "title": "Example Document Title.doc",
                    "url": "http://192.168.1.10:8080/static.zsfile/Project%20Files/DTJK/d6881018-ef38-4893-8f68-1e4b03c8677a/%E6%B5%8B%E8%AF%95%E6%96%87%E4%BB%B6%E5%A4%B92/test.doc",
                    "permissions": {
                      "edit": false,
                      "review": true
                    }
                },
                "documentType": "word",
                "editorConfig": {
                  "lang": "zh-CN",
                  "mode": "edit",
                    "callbackUrl": "https://api.onlyoffice.com/editors/callback#used-callbackUrl",
                },
                "height": "100%",
                "width": "100%"
            })

}}

    </script>
